package cn.ljy.mes.dao.mapper;

import cn.ljy.authority.dao.BaseMapper;
import cn.ljy.mes.model.MesCarTechnologyDetail;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface MesCarTechnologyDetailMapper extends BaseMapper<MesCarTechnologyDetail> {

    /**
     * 根据工艺id对应的工艺详情集合
     * @param carTechnologyId 工艺id
     * @return  删除的记录数，1表示删除成功，0表示删除失败，>1表示数据库存在异常
     */
    @Delete("delete from mes_car_technology_detail where technology_id=#{carTechnologyId}")
    int deleteByMesCarTechnologyId(String carTechnologyId);
}
